%define project mgkeit-games
%define commit 6e54bf8fe1f41a85c789740a421827261b0f3d05

Summary:	A pack of JavaScript educational games
Name:		mgkeit-games
Version:	1.0
Release:	0.git.1
License:	GPLv3
Group:		Development/Other
Url:		https://github.com/YuichiKamishiro/YuichiKamishiro.github.io
Vendor:		MOS
Source0:	https://github.com/YuichiKamishiro/YuichiKamishiro.github.io/archive/%{commit}.tar.gz?/YuichiKamishiro.github.io-%{commit}.tar.gz
Source1:	%{project}.desktop
BuildArch:	noarch

%description
%{summary}.

%files
%{_datadir}/%{project}
%{_datadir}/applications/%{project}.desktop

#------------------------------------------------------------------

%prep
%autosetup -p1 -n YuichiKamishiro.github.io-%{commit}

%install
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/%{project}

cp -R * %{buildroot}%{_datadir}/%{project}
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications
